package demo;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(sc.hasNextLine())
        {
            String str=sc.nextLine();
            String ret=func(str);
            System.out.println(ret);
        }
    }
    public static String func(String str)
    {
        boolean[] arr= new boolean[150];
        StringBuilder sh=new StringBuilder();
        for (int i = 0; i < str.length(); i++)
        {
            char ch = str.charAt(i);
            if(arr[ch]==false)
            {
                sh.append(ch);
                arr[ch]=true;
            }

        }
        return sh.toString();
    }

}
